<?php
/**
 * @Notes:【】
 * @Date: 2022-06-08 23:00
 */

namespace App\Controller\Api\Task;

use App\Controller\Admin\BaseController;
use App\Middleware\CheckAdminMiddleware;
use App\Service\Task\TaskHelpService;
use App\Service\Task\TaskService;
use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\Middleware;
use Yj\Apidog\Annotation\ApiController;
use Yj\Apidog\Annotation\FormData;
use Yj\Apidog\Annotation\PostApi;

/**
 * @ApiController(prefix="api/task/task-help")
 */
class TaskHelpController extends BaseController
{
    /**
     * @Inject()
     * @var TaskHelpService
     */
    protected $taskHelpService;

    /**
     * @Notes:【】
     * @Date: 2022-06-08 23:22
     * @PostApi(path="lists")
     */
    public function lists()
    {
        $data = $this->taskHelpService->page(false)->lists();
        _SUCCESS($data);
    }

}